<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesAdminActionLog.aspx.cs" Inherits="GonzalesAdminActionLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
       
    <script type="text/javascript" language="javascript" src="js/popcalendar.js"></script>       
</head>
<body>
<form id="form1" runat="server">
  <input type="hidden" name="ModalResult" id="ModalResult" />
  <div>
    <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
        <td class="PageTitle" style="width: 1119px"><asp:Label ID="Label_PageTitle" Text='Administration Panel' runat="server" />
        </td>
      </tr>
      <tr>
        <td style="width: 1119px"><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td width="170" rowspan="2" valign="top"><asp:Label CssClass="FormTitle" ID="Label_Information" runat="server" Text='System :: Audit Log' /></td>
            <td width="8" rowspan="2" class="VerticalDivider"><p>&nbsp;</p>
                  <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p></td>
            <td valign="top"><asp:Table CellPadding="5" CellSpacing="0" ID="Table_MessageBox" Width="100%" runat="server" Visible="false">
              <asp:TableRow>
                <asp:TableCell CssClass="ErrorBox" ></asp:TableCell>
              </asp:TableRow>
            </asp:Table></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="FormBorder">
              <tr>
                <td class="TableResultCriteriaBar"><table width="100%" border="0" cellspacing="0" cellpadding="1">
                  <tr>
                    <td><asp:TextBox ID="TextBox_DateFrom" Columns="10" TextMode="SingleLine" runat="server" CssClass="FormTextBox" />
                      <asp:Label ID="Label_To" Text="To" runat="server" />
                      <asp:TextBox ID="TextBox_DateTo" Columns="10" TextMode="SingleLine" runat="server" CssClass="FormTextBox" />
                      <asp:TextBox ID="TextBox_User" runat="server" Text='[Personnel Name]' CssClass="FormTextBox" />
                        <asp:DropDownList CssClass="FormDropDown" ID="ddlFiler" 
                            runat="server" AutoPostBack="True" 
                            OnSelectedIndexChanged="ddlFiler_SelectedIndexChanged"></asp:DropDownList>
                      <asp:Button CssClass="FormButton" ID="Button_Search" runat="server" Text="Search" OnClick="Button_Search_Click" />
                      <asp:Button CssClass="FormButton" ID="Button_ClearLog" runat="server" 
                            Text="Clear Log" OnClick="Button_ClearLog_Click" Visible="False" />
                      <asp:Button CssClass="FormButton" ID="btnExport" runat="server" Text="Export" 
                            OnClick="btnExport_Click" />
                      </td>
                    <td align="right"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortBy_SelectedIndexChanged"></asp:DropDownList>
                      <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortOrder_SelectedIndexChanged"></asp:DropDownList></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td valign="top"><asp:GridView ID="GridViewResult" runat="server" 
                        OnRowCreated="OnRowCreated" AutoGenerateColumns="False" CssClass="FormBorder" 
                        PageSize="100" AllowPaging="True" 
                        OnPageIndexChanging="GridViewResult_PageIndexChanging" 
                        EnableModelValidation="True">
                  <columns>
                    <asp:BoundField DataField="LogDateTime" HeaderText="Date/Time">
                      <itemstyle HorizontalAlign="Center" Width="150px" />
                      <HeaderStyle HorizontalAlign="Center" />                    </asp:BoundField>
                    <asp:BoundField DataField="Claimant" HeaderText="Logged By" HtmlEncode="False">
                      <itemstyle HorizontalAlign="Center" Width="200px" />                    </asp:BoundField>
                    <asp:BoundField DataField="Description" HeaderText="Description">
                      <HeaderStyle HorizontalAlign="Left" />                    </asp:BoundField>
                      <asp:BoundField DataField="log_interface" HeaderText="log_interface" />
                      <asp:BoundField DataField="UserID" HeaderText="UserID" />
                      <asp:BoundField DataField="UserName" HeaderText="UserName" />
                      <asp:BoundField DataField="ClaimantID" HeaderText="ClaimantID" />
                      <asp:BoundField DataField="ClaimantName" HeaderText="ClaimantName" />
                      <asp:BoundField DataField="RoleID" HeaderText="RoleID" />
                      <asp:BoundField DataField="Action" HeaderText="Action" />
                      <asp:BoundField DataField="ApproverID" HeaderText="ApproverID" />
                      <asp:BoundField DataField="ApproverName" HeaderText="ApproverName" />
                      <asp:BoundField DataField="DfltCurrency" HeaderText="DfltCurrency" />
                      <asp:BoundField DataField="CreditCardNo" HeaderText="CreditCardNo" />
                      <asp:BoundField DataField="AprStopPoint" HeaderText="AprStopPoint" />
                      <asp:BoundField DataField="AprLimit" HeaderText="AprLimit" />
                      <asp:BoundField DataField="NoAprRq" HeaderText="NoAprRq" />
                      <asp:BoundField DataField="NoAuthorizerRq" HeaderText="NoAuthorizerRq" />
                      <asp:BoundField DataField="AprRoute" HeaderText="AprRoute" />
                      <asp:BoundField DataField="AsClaimant" HeaderText="AsClaimant" />
                      <asp:BoundField DataField="AsReviewer" HeaderText="AsReviewer" />
                      <asp:BoundField DataField="LDAPAddress" HeaderText="LDAPAddress" />
                      <asp:BoundField DataField="AprRangeFr" HeaderText="AprRangeFr" />
                      <asp:BoundField DataField="AprRangeTo" HeaderText="AprRangeTo" />
                      <asp:BoundField DataField="LogType" HeaderText="LogType" Visible="False" />
                      <asp:BoundField DataField="AprLevel" HeaderText="AprLevel" />
                      <asp:BoundField DataField="UserEmployeeID" HeaderText="UserEmployeeID" />
                      <asp:BoundField DataField="UserEntity" HeaderText="UserEntity" />
                      <asp:BoundField DataField="ClaimantEmployeeID" 
                          HeaderText="ClaimantEmployeeID" />
                      <asp:BoundField DataField="ClaimantCompany" HeaderText="ClaimantCompany" />
                      <asp:BoundField DataField="ApproverEmployeeID" 
                          HeaderText="ApproverEmployeeID" />
                    </columns>
                  <RowStyle CssClass="GridViewItem" />
                  <headerstyle CssClass="GridViewHeader" />
                </asp:GridView>                </td>
              </tr>
            </table></td>
          </tr>
          
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
